<?php

return [
	// api配置
    'api'  => [

    	/* 房间预设 */

        // 创建房间
        'room_create' => [
            'request'   => 'post',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/config',
        ],
        // 查询房间配置
        'get_config' => [
            'request'   => 'get',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/config',
        ],
        // 更新房间配置
        'set_config' => [
            'request'   => 'put',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/config',
        ],

        /* 房间直播 */

        // 进入房间
        'entry_room' => [
        	'request'	=> 'post',
        	'api_uri'	=> '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{userUuid}/entry',
        ],
        // 获取房间用户列表
        'room_users' => [
            'request'   => 'get',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users',
        ],
        // 更新用户状态
        'set_user_state' => [
            'request'   => 'put',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{userUuid}',
        ],
        // 发送点对点聊天信息
        'chat_peer' => [
            'request'   => 'post',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{toUserUuid}/chat/peer',
        ],
        // 获取用户和流列表
        'user_streams' => [
            'request'   => 'get',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/userStreams',
        ],
        // 设置用户属性
        'set_properties' => [
            'request'   => 'put',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{userUuid}/properties/{key}',
        ],
        // 踢出用户
        'kick_out' => [
            'request'   => 'post',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{userUuid}/exit',
        ],
        // 获取消息通知列表
        'sequences' => [
            'request'   => 'get',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/sequences',
        ],
        // 更新房间状态
        'set_room_state' => [
            'request'   => 'put',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/states/{roomState}',
        ],
        // 获取流列表
        'streams' => [
            'request'   => 'get',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/streams',
        ],
        // 创建流
        'create_streams' => [
            'request'   => 'post',
            'api_uri'   => '/scene/apps/{appId}/v1/rooms/{roomUuid}/users/{userUuid}/streams/{streamUuid}',
        ],

        /* 消息通知 */

        // 房间状态改变
        'room_state' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/state',
        ],
        // 禁用状态改变
        'roles_mute' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/roles/mute',
        ],
        // 收到房间聊天消息
        'room_chat' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/chat',
        ],
        // 房间属性更新
        'room_properties' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/properties',
        ],
        // 用户状态改变
        'room_user' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/user',
        ],
        // 用户属性更新
        'user_properties' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/room/user/properties',
        ],
        // 流更新
        'channel_stream' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/channel/stream',
        ],
        // 收到房间自定义消息
        'channel_extension' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/channel/extension',
        ],
        // 收到点对点聊天消息
        'peer_msg' => [
            'request'   => 'post',
            'api_uri'   => '/scene/v1/rtm/peer',
        ],
    ]
];
